<template>
  <h1>El-布局组件</h1>
  <el-row :gutter="10">
    <el-col :span="6">测试数据</el-col>
    <el-col :span="6">测试数据</el-col>
    <el-col :span="6">测试数据</el-col>
    <el-col :span="6">测试数据</el-col>
  </el-row>

  <h3>测试图片</h3>
  <el-row :gutter="10">
    <el-col :span="12">
      <img src="2024.png" alt="">
    </el-col>
    <el-col :span="12">
      <img src="2024.png" alt="">
    </el-col>
  </el-row>

  <h3>六张图</h3>
  <el-row :gutter="10">
    <el-col :span="4">
      <img src="rich.jpg" alt="">
    </el-col>
    <el-col :span="4">
      <img src="rich.jpg" alt="">
    </el-col>
    <el-col :span="4">
      <img src="rich.jpg" alt="">
    </el-col>
    <el-col :span="4">
      <img src="rich.jpg" alt="">
    </el-col>
    <el-col :span="4">
      <img src="rich.jpg" alt="">
    </el-col>
    <el-col :span="4">
      <img src="rich.jpg" alt="">
    </el-col>
  </el-row>

  <h3>3张图 宽度为1:2:3</h3>
  <el-row :gutter="12">
    <el-row :span="4"><img src="2024.png" alt=""></el-row>
    <el-row :span="8"><img src="2024.png" alt=""></el-row>
    <el-row :span="12"><img src="2024.png" alt=""></el-row>
  </el-row>

  <h3>列偏移</h3>
  <el-row>
    <el-col :span="20" :offset="4"><img src="rich.jpg" style="width: 100%";></el-col>
  </el-row>

  <el-row>
   <el-col :span="3" v-for="n in 8" style="border: 2px solid #f00">{{n}}</el-col>
  </el-row>

  <!--布局嵌套-->
  <el-row>
    <el-col :span="12" style="border: 3px solid red;">左侧</el-col>
    <el-col :span="12" style="border: 3px solid #0f0;">
      <el-row>
        <el-col :span="8" style="border: 3px solid #00f;">卡片1</el-col>
        <el-col :span="8" style="border: 3px solid #00f">卡片2</el-col>
        <el-col :span="8" style="border: 3px solid #00f">卡片3</el-col>
      </el-row>
    </el-col>
  </el-row>
</template>

<script setup>

</script>

<style scoped>

</style>